<template>
  <commonpanel title="世界前100国内球员">
    <div class="contentbox">
      <div class="line1">
        <div class="innerbox2">
          <numboxlist :digit-num="8" :value="7" />
        </div>
        <div class="unitbox">人</div>
      </div>
      <div class="line2">
        <div class="left">
          <div class="titlebox">
            <div class="ibox"><span class="desc">男女占比</span></div>
          </div>
          <div class="itembox itembox1">
            <div class="ibox">
              <span class="desc">男</span>
              <span class="percent">3%</span>
            </div>
          </div>
          <div class="itembox itembox2">
            <div class="ibox">
              <span class="desc">女</span>
              <span class="percent">4%</span>
            </div>
          </div>
        </div>
        <div class="right">
          <div class="titlebox">
            <div class="ibox"><span class="desc">男女人数</span></div>
          </div>
          <div class="rateline">
            <div class="linea1">
              <div class="label label1">3 人</div>
              <div class="label label3">4 人</div>
            </div>
            <div class="linea2"></div>
            <div class="linea3">
              <div class="label label2">男</div>
              <div class="label label3">女</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </commonpanel>
</template>
<script lang="ts" setup>
  import commonpanel from '@/components/common/panel.vue';

  import numboxlist from '@/components/common/numboxlist.vue';
</script>
<style lang="scss" scoped>
  .contentbox {
    overflow: hidden;
    height: 100%;

    display: flex;
    flex-direction: column;
  }

  .line1 {
    margin-top: 16px;
    height: 36px;
    overflow: hidden;

    .innerbox2 {
      margin-left: 30px;
      overflow: hidden;
      height: 36px;
      width: 326px;
      float: left;

      display: flex;
      justify-content: space-between;

      .numbox {
        flex: 1;
      }
    }

    .unitbox {
      font-size: 14px;
      font-family: SourceHanSansCN-Normal, SourceHanSansCN;
      font-weight: 400;
      color: #ffffff;
      line-height: 56px;
      height: 36px;
      float: left;
    }
  }

  .line2 {
    flex: 1;

    .left {
      width: 50%;
      float: left;
      height: 100%;
      padding-left: 20px;

      .titlebox {
        height: 20px;
        margin-top: 20px;

        .ibox {
          height: 100%;
        }

        .ibox:before {
          position: absolute;
          content: '';
          width: 2px;
          border-left: 4px solid #4a9ef2;
          height: 20px;
        }

        .desc {
          font-size: 14px;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: #ffffff;
          line-height: 20px;
          //opacity: 0.8;
          margin-left: 8px;
        }
      }

      .itembox {
        height: 28px;
        width: 152px;
        background: linear-gradient(270deg, rgba(39, 129, 192, 0) 0%, #114a8c 100%);

        .ibox {
          height: 100%;
          // padd-left: 10px;
        }

        .desc {
          font-size: 12px;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: #ffffff;
          line-height: 28px;
          //opacity: 0.8;
          margin-left: 10px;
        }

        .percent {
          font-size: 12px;
          font-family: PingFangSC-Semibold;
          font-weight: 600;
          color: #ffffff;
          line-height: 28px;
          margin-left: 8px;
        }
      }

      .itembox1 {
        margin-top: 12px;
      }

      .itembox2 {
        margin-top: 10px;
      }
    }

    .right {
      .titlebox {
        height: 20px;
        margin-top: 20px;

        .ibox {
          height: 100%;
        }

        .ibox:before {
          position: absolute;
          content: '';
          width: 2px;
          border-left: 4px solid #4a9ef2;
          height: 20px;
        }

        .desc {
          font-size: 14px;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: #ffffff;
          line-height: 20px;
          //opacity: 0.8;
          margin-left: 8px;
        }
      }

      .rateline {
        overflow: hidden;

        margin-top: 26px;
        padding-right: 20px;

        .linea1 {
          position: relative;
          height: 16px;

          .label {
            font-size: 12px;
            font-family:
              PingFangSC-Regular,
              PingFang SC;
            font-weight: 400;
            color: #ffffff;
            line-height: 16px;
            float: left;
            height: 16px;
            overflow: hidden;
            //opacity: 0.8;
          }

          .label1 {
            position: absolute;
            left: 0;
          }

          .label2 {
            position: absolute;
          }

          .label3 {
            position: absolute;
            right: 0;
          }
        }

        .linea2 {
          height: 14px;
          margin-top: 4px;

          .bar {
            height: 100%;
            float: left;
          }

          .bar1 {
            background-color: #51aeff;
            border-top-left-radius: 2px;
            border-bottom-left-radius: 2px;
          }

          .bar2 {
            background-color: #3d8cd0;
          }

          .bar3 {
            background-color: #296aa0;

            border-top-right-radius: 2px;
            border-bottom-right-radius: 2px;
          }
        }

        .linea3 {
          position: relative;
          height: 16px;
          margin-top: 4px;

          .label {
            font-size: 12px;
            font-family:
              PingFangSC-Regular,
              PingFang SC;
            font-weight: 400;
            color: #ffffff;
            line-height: 16px;
            float: left;
            height: 16px;
            overflow: hidden;
            //opacity: 0.8;
          }

          .label1 {
            position: absolute;
            left: 0;
          }

          .label2 {
            position: absolute;
          }

          .label3 {
            position: absolute;
            right: 0;
          }
        }
      }
    }
  }
</style>
